<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html ng-app="App">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Simuladores</title>
<link href='./css/style.css' rel="stylesheet" type="text/css"></link>
<link href='./css/css/font-awesome.css' rel="stylesheet" type="text/css"></link>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
<script data-require="angular.js@*" data-semver="1.2.13" src="http://code.angularjs.org/1.2.13/angular.js"></script> 


<!-- Latest compiled and minified CSS -->
<script type="text/javascript" src="./js/lib/jquery-1.11.1.min.js"></script>

<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
<script src="./bootstrap/js/bootstrap.js"></script>

<!-- Latest compiled and minified JavaScript -->

<link href='./js/lib/datatables/jquery.dataTables_themeroller.css' rel="stylesheet" type="text/css"></link>
<link href='./js/lib/datatables/jquery.dataTables.css' rel="stylesheet" type="text/css"></link>


<script type="text/javascript" src="./js/lib/jquery-inputmask/jquery.inputmask.bundle.js"></script>
<script type="text/javascript" src="./js/lib/datatables/jquery.dataTables.js"></script>

<script type="text/javascript" src="./js/app.js"></script>
<script type="text/javascript" src="./js/productService.js"></script>
<script type="text/javascript" src="./js/productController.js"></script>
</head>
<body>

<div class="container" ng-controller="ProductListController">
    <div class="panel panel-default">
      <div class="panel-body">
         <form class="form-horizontal" name="frm" >
              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">Name</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" ng-model="entity.name" name="name"   required>
                <span style="color: #c23e3e" ng-show="Submitted && frm.name.$error.required">This field is required.</span>
                </div>
              </div>
              <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">Desciption</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" name="Description" ng-model="entity.description"     required>
               <span style="color: #c23e3e" ng-show="Submitted && frm.Description.$error.required">This field is required.</span>
                </div>
              </div>
               <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">Tax Amount</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" name="tax_Amount" ng-model="entity.tax_Amount" required>
                <span style="color: #c23e3e" ng-show="Submitted && frm.tax_Amount.$error.required">This field is required.</span>
                </div>
              </div>
               <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">Custom Amount</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" name="fg_Allow_Custom_Amount" ng-model="entity.fg_Allow_Custom_Amount"      required>
                <span style="color: #c23e3e" ng-show="Submitted && frm.fg_Allow_Custom_Amount.$error.required">This field is required.</span>
                </div>
              </div>
               <div class="form-group">
                <label  class="col-sm-2 control-label">Acitve</label>
                <div class="col-sm-10">
               <label class="radio-inline">
                  <input type="radio" name="fg_Activ" ng-model="entity.fg_Active"  value=1 checked> Active
                </label>
                <label class="radio-inline">
                  <input type="radio" name="fg_Activ" ng-model="entity.fg_Active"  value=0> No active
                </label>
                 </div>    
              </div>
            
               <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">Calc Type</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" name="vlCalcType" ng-model="entity.vlCalcType"  required>
               <span style="color: #c23e3e" ng-show="Submitted && frm.vlCalcType.$error.required">This field is required.</span>
                </div>
              </div>
              
              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="button" class="btn btn-default" ng-click="Save(frm.$valid)">Save</button>
                </div>
              </div>
            </form>
      </div>
    </div>
     <button type="button" class="btn btn-default"  ng-click="CreateNew()">Create New</button>
    <div class="panel panel-default">
      <div class="panel-body">
         <table class="table table-bordered table-striped mg-t datatable"  id="tblScanHistory" aa-data="listproduct" paging-table></table>
      </div>
    </div>
</div>
</body>
</html>